home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / 14 assemblies / testassembly / class1.vb < prev    next >
Encoding:
Text File  |  2002-03-16  |  497 b   |  14 lines

  1. ' a public class that is used to return version info on running assembly
  2.  
  3. Public Class VersionInfo
  4.     ReadOnly Property Description() As String
  5.         Get
  6.             ' Get a reference to the current assembly.
  7.             Dim asm As System.Reflection.Assembly
  8.             asm = System.Reflection.Assembly.GetExecutingAssembly
  9.             ' Return its version, culture, and public key token.
  10.             Return "FULLNAME = " & asm.FullName
  11.         End Get
  12.     End Property
  13. End Class
  14.